﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GFrame.Shadow;

namespace GFrame
{
    [GTable("Users")]
    public class TestEntity
    {
        private int id;
        private string _name;
        private DateTime? _createdate;
        private bool? _active;

        [GField("ID", FieldTypeEnum.PK, true)]
        public int ID
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }

        }

        [GField("Name")]
        public string Name
        {
            get
            {
                return _name;
            }

            set
            {
                _name = value;
            }
        }

        [GField("CreateDate")]
        public DateTime? CrateDate
        {
            get
            {
                return _createdate;
            }

            set
            {
                _createdate = value;
            }
        }

        [GField("Active")]
        public bool? Active
        {
            get
            {
                return _active;
            }
            set
            {
                _active = value;
            }
        }
    }
}
